package com.example.zhangxin.myhuatuob2b.utils;

/**
 * Created by ZhangXin on 2016/10/11.
 */

public class URL {

    /**
     * 与服务器端连接的协议名
     */
    public static final String PROTOCOL = "http://";
    public static final String HOST = "b2b.htyyao.com";//101.201.197.50  b2b.huatuoyf.com 测试地址
    /**
     * 应用上下文名
     */
    public static final String APP = "/mobile";///mobile
    /**
     * 应用上下文完整路径
     */
    public static final String URL_CONTEXTPATH = PROTOCOL + HOST + APP + "/index.php?";
    /**
     * 首页请求地址
     */
    public static final String URL_HOME = URL_CONTEXTPATH + "act=index&op=index";
    /**
     * 专题接口
     */
    public static final String URL_SPECIAL = URL_CONTEXTPATH + "act=index&op=special";
    /**
     * 一级分类请求地址
     */
    public static final String URL_GOODSCLASS = URL_CONTEXTPATH + "act=goods_class";
    /**
     * 商品列表请求地址
     */
    public static final String URL_GOODSLIST = URL_CONTEXTPATH + "act=goods&op=goods_list";
    /**
     * 分页显示个数
     */
    public static final int PAGESIZE = 10;
    /**
     * 商品详情请求地址
     */
    public static final String URL_GOODSDETAILS = URL_CONTEXTPATH + "act=goods&op=goods_detail";
    /**
     * 添加购物车请求地址
     */
    public static final String URL_ADD_CART = URL_CONTEXTPATH + "act=member_cart&op=cart_add";
    /**
     * 注册
     */
    public static final String URL_REGISTER = URL_CONTEXTPATH + "act=login&op=register";
    /**
     * 登录请求地址
     */
    public static final String URL_LOGIN = URL_CONTEXTPATH + "act=login&op=loginByUsername";//act=login

}
